//
//  IEPageControl.h
//  LGIntellectExam
//
//  Created by dangwc on 2019/6/10.
//  Copyright © 2019 dangwc. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


#define IE_ScreenWidth  [UIScreen mainScreen].bounds.size.width
#define IE_ScreenHeight [UIScreen mainScreen].bounds.size.height
#define SCREEN_MAX_LENGTH (MAX([UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height))
#define RGBcolor(x,y,z) [UIColor colorWithRed:x/255.0 green:y/255.0 blue:z/255.0 alpha:1.0]
#define ISIphoneX ([[UIApplication sharedApplication] statusBarFrame].size.height > 20)
#define IS_IPHONE_5_5S (SCREEN_MAX_LENGTH == 568.0)
#define IE_SafeAreaBottom (ISIphoneX ? 34 : 0)
#define IE_Navigation_height (ISIphoneX ? 88 : 64)


@interface IEPageControl : UIControl

@property(nonatomic) NSInteger numberOfPages;          // default is 0
@property(nonatomic) NSInteger currentPage;            // default is 0. value pinned to
@property(nonatomic) BOOL hidesForSinglePage;
@property(nullable, nonatomic,strong) UIColor *pageIndicatorTintColor;
@property(nullable, nonatomic,strong) UIColor *currentPageIndicatorTintColor;

@end

NS_ASSUME_NONNULL_END
